#!/usr/bin/python3
"""
    ----coding:utf-8----
    @Author   : sobo
    @Time     : 2018/4/11 下午2:52
    @Software : 
    @File     : forms.py

"""
from django import forms
from django.forms.models import inlineformset_factory
from .models import Course, Module

ModuleFormSet = inlineformset_factory(Course, Module,
                                      fields=['title', 'description'], extra=2, can_delete=True)
